package com.itheima.collectiondemo;


import java.util.ArrayList;
import java.util.Vector;

/**
 * @Author 王加鑫
 * @Date 2021/5/13 21:28
 * @Version 1.0
 */
public class CollectionRemoveTest {
    public static void main(String[] args) {
        ArrayList<Integer> list = new ArrayList<>();

        for (int i = 0; i < 5000000; i++) {
            list.add(i);
        }
        long startTime = System.currentTimeMillis();
        list.remove(109);
        long endTime = System.currentTimeMillis();
        System.out.println(endTime - startTime);


    }
}
